/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package neo.workforce.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;
import neo.workforce.dao.Lookup;
import org.springframework.jdbc.core.RowMapper;

/**
 *
 * @author KTB_User
 */
public class LookupRowMapper implements RowMapper {

    public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
        Lookup item = new Lookup();
        item.setId(rs.getInt("ID"));
        item.setKeyName(rs.getString("KEY_NAME"));
        item.setKeyValue(rs.getString("KEY_VALUE"));
        item.setKeyGroup(rs.getString("KEY_GROUP"));
        return item;
    }
}
